home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 843 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.9 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: b91926@fsgi01.fnal.gov (David Sachs)
  3. Newsgroups: comp.std.c++
  4. Subject: Placement delete suggestion Keywords: delete placement
  5. Date: 25 Mar 1996 10:05:32 PST
  6. Organization: FERMILAB, Batavia, IL
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4j4ec5$d41@fsgi01.fnal.gov>
  9. Reply-To: sachs@fnal.fnal.gov
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: 24 Mar 1996 15:21:09 -0600
  12. X-Newsreader: NN version 6.5.0 #9 (NOV)
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMVbgiEy4NqrwXLNJAQH9ZgIAz5KH/VVhNpZYikg5MJzpuHh1s26LR4Mj
  15.     dDs5pptvJUxsr6qvkwQHcBruaaqqnNeIdUgR3nHestGreup0jgbz1g==
  16.     =ya0X
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. The lack of a placement delete expression form, corresponding to
  20. the placment new form, has been a topic for serious discussion in
  21. this group.  The obvious problem with placement delete is that
  22. any non-awkward form could be ambiguous, though examples that
  23. would show such ambguity are probably infrequent.
  24.  
  25. In view of this, it might be reasonable if the standards committee
  26. bit the bullet and declare that such ambiguous forms should be
  27. treated as placement deletes. That should be anything of the form:
  28.  
  29. delete leftparenthesis expressionlist rightparenthesis expression
  30.  
  31. delete[] leftparenthesis expressionlist rightparenthesis expression
  32.  
  33. Admitedly, this would probably break some existing code, but the
  34. broken expressions can be fixed by adding parentheses.
  35. -- 
  36. ***** Listen Americans, the IRS is your taxer,  the IRS is one. *****
  37. David Sachs - Fermilab, HPPC MS369 - P. O. Box 500 - Batavia, IL 60510
  38. Voice: 1 708 840 3942      Deparment Fax: 1 708 840 3785
  39. ---
  40. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  41.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  42.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  43.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  44.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  45. ]
  46.